package ch.unizh.ifi.ailab.dataTypes;

import ch.unizh.ifi.ailab.config.ProgramSettings;

/**
 * @author hans jaeckle jaeckle@gmail.com
 * 
 */
public class Command {
	ProgramSettings myProp = ProgramSettings.getProgramSettings();

	private int speed;

	private int direction;

	public Command() {
		speed = myProp.getIntProperty("speedStop");
		direction = myProp.getIntProperty("dirCenter");
	}

	public Command(int speed, int direction) {
		this.speed = speed;
		this.direction = direction;
	}

	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("speed: "+getSpeed()+" direction: "+getDirection());
		return sb.toString();
	}
}
